@import "~common/css/_variables.scss";

.song_list {
  position: relative;

  .boutique {
    position: relative;
    width: 100%;
    padding: 16px;
    border-radius: 8px;
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    height: 172px;
    overflow: hidden;
    margin-bottom: 16px;
    cursor: pointer;

    .boutiquebg_content {
      width: 100%;
      height: 100%;
      display: flex;

      .coverImgUrl {
        position: relative;
        z-index: 2;
        width: 140px;
        height: 140px;
        border-radius: 4px;
      }

      .boutiquebg_info {
        position: relative;
        z-index: 2;

        p {
          margin-left: 10px;

          &:nth-child(1) {
            width: 100px;
            height: 30px;
            text-align: center;
            line-height: 30px;
            color: #E7AA5A;
            font-size: 16px;
            border: 1px solid #E7AA5A;
            border-radius: 40px;
            margin-top: 20px;
          }

          &:nth-child(2) {
            color: #fff;
            font-size: 16px;
            margin-top: 30px;
          }

          &:nth-child(3) {
            margin-top: 10px;
            color: #e5e6ea;
            font-size: 12px;
          }
        }
      }
    }

    .boutiquebg {
      width: 100%;
      height: 172px;
      display: block;
      position: absolute;
      top: 0;
      left: 0;
      filter: blur(20px);
      transform: scale(1.5);
    }
  }

  // model box
  .model {
    position: absolute;
    top: 35px;
    left: 0px;
    z-index: 2;
  }

  // 热门歌单
  .hot_tag {
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    margin: 10px 0 20px;

    // show model btn
    .all_list_text {
      width: 100px;
      height: 30px;
      line-height: 30px;
      border-radius: 40px;
      text-align: center;
      font-size: $fz12;
      cursor: pointer;
      border: 1px solid #e5e6ea;
      background-color: #fff;
    }

    ul {
      display: flex;

      li {
        position: relative;
        cursor: pointer;
        color: $c666;
        font-size: $fz12;
        padding: 4px 12px;
        border-radius: 10px;


        &.active {
          color: $color;
          background-color: $color1;
        }
      }
    }
  }

  // 标签弹窗
  .songListClassify {
    width: 540px;
    height: 400px;
    border-radius: 4px;
    background-color: #fff;
    // user-select: none;
    box-shadow: 0 0 8px 0 rgba($color: #000000, $alpha: 0.1);

    .title {
      width: 100%;
      height: 50px;
      line-height: 50px;
      padding: 0 20px;
      border-bottom: 1px solid #e5e6ea;
    }

    .scroll_box {
      width: 100%;
      height: calc(100% - 50px);

      .content {
        width: 100%;
        padding: 10px 20px;

        .tag_box {
          display: flex;
          margin-top: 10px;

          &:nth-child(2) h3 {
            background: url("~common/images/icon_0.png") top 7px left / 24px 24px no-repeat;
          }

          &:nth-child(3) h3 {
            background: url("~common/images/icon_1.png") top 7px left / 24px 24px no-repeat;
          }

          &:nth-child(4) h3 {
            background: url("~common/images/icon_2.png") top 7px left / 24px 24px no-repeat;
          }

          &:nth-child(5) h3 {
            background: url("~common/images/icon_3.png") top 7px left / 24px 24px no-repeat;
          }

          &:nth-child(6) h3 {
            background: url("~common/images/icon_4.png") top 7px left / 24px 24px no-repeat;
          }

          h3 {
            width: 80px;
            line-height: 36px;
            padding-left: 30px;
          }

          ul {
            display: flex;
            flex-wrap: wrap;
            width: 420px;

            li {
              position: relative;
              width: 80px;

              &:not(:nth-child(-n + 5)) {
                margin-top: -1px;
              }

              &:not(:nth-child(5n - 4)) {
                margin-left: -1px;
              }
            }
          }
        }

        .tag {
          text-align: center;
          line-height: 34px;
          cursor: pointer;
          border: 1px solid #e5e6ea;
          border-radius: 2px;
          font-size: $fz12;
          background-color: #fff;

          &:hover {
            z-index: 2;
            // border: 1px solid $color;
            background-color: #f5f5f7;
          }
        }

        .tagActive {
          z-index: 3;
          border: 1px solid $color;
          background: url("~common/images/choose_right.png") bottom right / 17px no-repeat;
        }

        .hotActive {
          &::before {
            position: absolute;
            content: "";
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: url("~common/images/hot.png") top 4px right 4px / 16px no-repeat;
          }
        }
      }
    }
  }

  .arrow {
    position: relative;

    &::before {
      position: absolute;
      content: "";
      top: -10px;
      left: 24px;
      width: 0;
      height: 0;
      border-right: 10px solid transparent;
      border-left: 10px solid transparent;
      border-bottom: 10px solid rgba($color: #000000, $alpha: 0.1);
    }

    &::after {
      position: absolute;
      content: "";
      top: -9px;
      left: 24px;
      width: 0;
      height: 0;
      border-right: 10px solid transparent;
      border-left: 10px solid transparent;
      border-bottom: 10px solid #fafafa;
    }
  }


  // 分页组件样式重写
  .pages {
    :global {
      .ant-pagination {
        display: table;
        margin: 0 auto;

        .ant-pagination-item {
          &:hover {
            border-color: $color;
          }

          a:hover {
            color: $color;
          }
        }

        .ant-pagination-item-link {
          &:hover .ant-pagination-item-link-icon {
            color: $color;
            border-color: $color;
          }
        }

        .ant-pagination-prev,
        .ant-pagination-next {
          &:hover {
            .anticon {
              color: $color;
            }

            .ant-pagination-item-link {
              border-color: $color;
            }
          }
        }

        .ant-pagination-disabled {
          .ant-pagination-item-link {
            &:hover {
              color: rgba(0, 0, 0, 0.25);
              border-color: #d9d9d9;
            }
          }
        }

        .ant-pagination-item-active {
          border-color: $color;
        }

        .ant-pagination-item-active a {
          color: $color;
        }

        .anticon {
          vertical-align: 0;
        }
      }
    }
  }
}